<?php
namespace app\api\validate;

/**
 * 此验证器，验证ID是否为正整数
 */
class IDMustBePositiveInt extends BaseValidate
{
	protected $rule = [
		'id' => 'require|isPositiveInteger',
		// 'num' => 'in:1,2,3'
	];

	protected $message = [
		'id.require' => 'id必须填写',
		'id.isPositiveInteger' => 'id必须是正整数',
	];
}